import {
	request
} from './request.js' //导入封装好的js文件

//登录  post请求
export const login = (data) => {
	return request({
		url: 'api/admin/login',
		method: 'post',
		data: data
	})
}

//验证码
export const code = () => {
	return request({
		url: 'api/admin/validate/code/get',
	})
}
//商品分类
export const categoryTree = () => {
	return request({
		url: 'api/admin/category/list/tree',
	})
}
//获取用户信息
export const getAdminInfoByToken = () => {
	return request({
		url: 'api/admin/getAdminInfoByToken',
	})
}